package cn.tdeu.spring.eg0;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUserController {
    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext
                        ("cn.tdeu.spring");
        UserController bean = context.getBean(UserController.class);
        bean.run();
    }
}
